<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "ico_money_log".
 *
 * @property string $id
 * @property string $uid
 * @property string $before
 * @property string $after
 * @property string $desc
 * @property string $count
 * @property string $created_at
 * @property string $updated_at
 */
class IcoMoneyLog extends \common\models\BaseActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ico_money_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['uid', 'before', 'after', 'count', 'created_at', 'updated_at'], 'integer'],
            [['desc'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '用户id',
            'before' => '消费前币数量',
            'after' => '之后币数量',
            'desc' => '描述',
            'count' => 'Count',
            'created_at' => '流动时间',
            'updated_at' => 'Updated At',
        ];
    }
}
